<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"
	prefix="tiles"%>

<rich:panel header="#{messages['prospect.company.member.conversion']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>

	<h:panelGrid width="100%">
		<h:outputText value="#{messages['membership.info']}" styleClass="sub_header" />
	</h:panelGrid>

	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">

		<h:panelGroup>
			<h:outputLabel for="name" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="name"    styleClass="standardText" value="#{adminMemberConversionBean.member.name}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="nameoncard" value="#{messages['name.on.card']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="nameoncard"    styleClass="standardText" value="#{adminMemberConversionBean.member.nameOnCard}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="statement" value="#{messages['statement']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="statement"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.statementTypeLabel}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="sendstatement" value="#{messages['send.statement']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="sendstatement"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.statementLabel}"></t:outputText>
		</h:panelGroup>
		
	
		<h:panelGroup>
			<h:outputLabel for="othertimeshare" value="#{messages['member.of.other.timeshare']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="othertimeshare"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.timeshareCompFlagLabel}"></t:outputText>
		</h:panelGroup>
		
	   <h:panelGroup>
		    <h:outputLabel for="email" value="#{messages['email']}" styleClass="standardText_Label" />
	   </h:panelGroup>
	   <h:panelGroup>
	   	<t:outputText id="email"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.email}">
	   	</t:outputText>
	   </h:panelGroup>
	   
	   <%--<h:outputText></h:outputText>
		<t:message for="image" styleClass="error"></t:message>
		
		<h:panelGroup>
			<h:outputLabel for="image" value="#{messages['image']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:inputFileUpload id="image" storage="file"   ></t:inputFileUpload>
		</h:panelGroup>--%>

	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['company.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="compInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="CompanyName" value="#{messages['name']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyName"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.compName}"></t:outputText>
		
	
	    <h:panelGroup>
		    <h:outputLabel for="establish" value="#{messages['establish.date']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="establish"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.dateIncorporation}"></t:outputText>
	    </h:panelGroup>
	    
		<h:panelGroup>
			<h:outputLabel for="RegNo" value="#{messages['registration.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="RegNo"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.registerNo}"></t:outputText>
		
		<h:panelGroup>
			<h:outputLabel for="AccRefNo" value="#{messages['account.reference.no']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="AccRefNo"   styleClass="standardText"  value="#{adminMemberConversionBean.memberComp.accRefNo}"></t:outputText>
		
		
		<h:panelGroup>
			<h:outputLabel for="natureofbusiness" value="#{messages['nature.of.business']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="natureofbusiness"   styleClass="standardText" value="#{adminMemberConversionBean.memberComp.natureOfBuz}"></t:outputText>
		
		<h:panelGroup>
			<h:outputLabel for="contactperson" value="#{messages['contact.person']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="contactperson"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.contactPerson}"></t:outputText>
		</h:panelGroup>
		
		<h:panelGroup>
			<h:outputLabel for="designation" value="#{messages['designation']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
			<t:outputText id="designation"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.designation}"></t:outputText>
		</h:panelGroup>
   
		<h:panelGroup>
	    	<h:outputLabel for="CompanyAdress1" value="#{messages['address']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText id="CompanyAdress1"     styleClass="standardText" value="#{adminMemberConversionBean.memberComp.regAddress1}"></t:outputText>
	    
	    
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="CompanyAdress2"   styleClass="standardText" value="#{adminMemberConversionBean.memberComp.regAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyPostcode" value="#{messages['postcode']}" styleClass="standardText_Label" />
	    </h:panelGroup>
    	<t:outputText id="CompanyPostcode"    styleClass="standardText" 
    	value="#{adminMemberConversionBean.memberComp.regPostcode}">
    	</t:outputText>
    	
	    <h:panelGroup>
	    	<h:outputLabel for="CompanyCity" value="#{messages['city']}" styleClass="standardText_Label" />
	    </h:panelGroup>
        <t:outputText id="CompanyCity"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.regCity}"></t:outputText>
	    	
	    <h:panelGroup>
	    <h:outputLabel for="CompanyCountry" value="#{messages['country']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyCountry"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.regCountry.desc}"></t:outputText>
    	
	    <h:panelGroup>
	   		<h:outputLabel for="CompanyState" value="#{messages['state']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:outputText id="CompanyState"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.regState.desc}"></t:outputText>
	    
	    <h:outputLabel for="TelephoneNoOffice" value="#{messages['telephone.no']}" styleClass="standardText_Label" />
    	<t:outputText id="TelephoneNoOffice"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.compTel}">
    	</t:outputText>
	    
	    <h:outputLabel for="FaxNoOffice" value="#{messages['fax.no']}" styleClass="standardText_Label" />
    	<t:outputText id="FaxNoOffice"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.compFax}">
    	</t:outputText>
	</t:panelGrid>
	
	<h:panelGrid width="100%">
		<h:outputText value="#{messages['mailing.info']}"
			styleClass="sub_header" />
	</h:panelGrid>
	
	<t:panelGrid id="mailInfo" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
		<h:panelGroup>
			<h:outputLabel for="MailAddress1" value="#{messages['mail.address']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailAddress1"     styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailAddress1}"></t:outputText>
	     
	     
	    <h:panelGroup></h:panelGroup>
	    <h:panelGroup>
	    	<t:outputText id="MailAddress2"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailAddress2}"></t:outputText>
	    </h:panelGroup>
	    
	    <h:panelGroup>
			<h:outputLabel for="MailPostcode" value="#{messages['mail.postcode']}" styleClass="standardText_Label" />
		</h:panelGroup>
	    <t:outputText id="MailPostcode"     styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailPostcode}">
	    </t:outputText>
	    
	    <h:panelGroup>
			 <h:outputLabel for="MailCity" value="#{messages['mail.city']}" styleClass="standardText_Label" />
		</h:panelGroup>	
		<t:outputText  id="MailCity"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailCity}"></t:outputText>
	
	     <h:panelGroup>
			 <h:outputLabel for="MailCountry" value="#{messages['mail.country']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText  id="MailCountry"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailCountry.desc}"></t:outputText>
	    
	    <h:panelGroup>
			 <h:outputLabel for="MailState" value="#{messages['mail.state']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<t:outputText  id="MailState"    styleClass="standardText" value="#{adminMemberConversionBean.memberComp.mailState.desc}"></t:outputText>
	   </t:panelGrid>
	   
	   <rich:spacer height="30"></rich:spacer>
	<h:panelGrid width="100%">
				<h:outputText value="#{messages['action']}" styleClass="sub_header" />
				<h:panelGroup>
						<h:outputText value="*" styleClass="standardText_Mandatory" />
						<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
				</h:panelGroup>
			</h:panelGrid>
	
		<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		
			<h:outputText></h:outputText>
			<t:message for="no" styleClass="error"></t:message>
	
			<h:panelGroup>
				<h:outputText value="*" styleClass="standardText_Mandatory" />
				<h:outputLabel for="no" value="#{messages['membership.no']}" styleClass="standardText_Label" />
			</h:panelGroup>
			<h:panelGroup>
				<t:inputText id="no" required="true" size="50" maxlength="50" styleClass="standardText" value="#{adminMemberConversionBean.member.membershipNo}"></t:inputText>
			</h:panelGroup>
			
		</t:panelGrid>
		
		<h:panelGrid width="100%">
				<h:outputText value="#{messages['nominee.info']}"
					styleClass="sub_header" />
		</h:panelGrid>
		
		<rich:dataTable value="#{adminMemberConversionBean.list}" var="nominee" width="50%">
			<rich:column style="text-align:center;width:50%;" >
				<f:facet name="header">
					<h:outputText value="#{messages['name']}"></h:outputText>
				</f:facet>
				<h:outputText value="#{nominee.nameMembershipCard}"></h:outputText>
			</rich:column>
			
			<rich:column style="text-align:center;width:50%;" >
				<f:facet name="header">
					<h:outputText value="#{messages['membership.no']}"></h:outputText>
				</f:facet>
				<t:inputText required="true" size="50" maxlength="50" styleClass="standardText" value="#{nominee.membershipNo}"></t:inputText>
			</rich:column>
		</rich:dataTable>
		
		<rich:spacer height="20"></rich:spacer>
	
		<t:panelGrid columns="2" width="100%">
				<h:commandButton styleClass="button" action="#{adminMemberConversionBean.convertAction}" value="#{messages['convert']}" ></h:commandButton>
				<h:commandButton styleClass="button" action="#{adminMemberConversionBean.backAction}" value="#{messages['cancel']}" immediate="true"></h:commandButton>
		</t:panelGrid>
	
</rich:panel>

